from flask_restful import Resource, Api

from flask import Flask

app = Flask(__name__)

api = Api(app)


class LoginView(Resource):
    def post(self):
        return {
            "lidabao": "未来的天才"
        }


api.add_resource(LoginView, '/login', endpoint="login")


@app.route('/')
def hello():
    return 'hello world'


if __name__ == '__main__':
    app.run(debug=True)
